package OOP.day09.homework.AnimalDemo03;

public abstract class Animal {
    //属性
    public  String name;
    public  int age;
    public String color;

    //构造方法
    public Animal() {
    }

    public Animal(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    //行为
    public abstract void eat();

    public void drink(){
        System.out.println(name+"正在喝水");
    }
}
